<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyivtbmaterpedCreateDlg" widgetVar="PyivtbmaterpedCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyivtbmaterpedTitle}">

            <h:form id="PyivtbmaterpedCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyivtbmaterpedController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_producto}" for="producto" />
                        <p:inputText id="producto" value="#{pyivtbmaterpedController.selected.producto}" title="#{myBundle.CreatePyivtbmaterpedTitle_producto}" required="true" requiredMessage="#{myBundle.CreatePyivtbmaterpedRequiredMessage_producto}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyivtbmaterpedController.selected.descripcion}" title="#{myBundle.CreatePyivtbmaterpedTitle_descripcion}" />

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_cantidad}" for="cantidad" />
                        <p:inputText id="cantidad" value="#{pyivtbmaterpedController.selected.cantidad}" title="#{myBundle.CreatePyivtbmaterpedTitle_cantidad}" required="true" requiredMessage="#{myBundle.CreatePyivtbmaterpedRequiredMessage_cantidad}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_costounitario}" for="costounitario" />
                        <p:inputText id="costounitario" value="#{pyivtbmaterpedController.selected.costounitario}" title="#{myBundle.CreatePyivtbmaterpedTitle_costounitario}" required="true" requiredMessage="#{myBundle.CreatePyivtbmaterpedRequiredMessage_costounitario}"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyivtbmaterpedController.selected.fecharegistro}" title="#{myBundle.EditPyivtbmaterpedTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyivtbmaterpedRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_pedidonum}" for="pedidonum" />
                        <p:inputText id="pedidonum" value="#{pyivtbmaterpedController.selected.pedidonum}" title="#{myBundle.CreatePyivtbmaterpedTitle_pedidonum}" />

                        <p:outputLabel value="#{myBundle.CreatePyivtbmaterpedLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyivtbmaterpedController.selected.observaciones}" title="#{myBundle.CreatePyivtbmaterpedTitle_observaciones}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyivtbmaterpedController.saveNew}" value="#{myBundle.Save}" update="display,:PyivtbmaterpedListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyivtbmaterpedCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyivtbmaterpedCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
